{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "#要停下程序：输入英文报错，程序就停下来了\n",
    "\n",
    "while True:\n",
    "    N=input('这是第几组数据？')\n",
    "    Ul=input('UL=?')\n",
    "    Uc=input('Uc=?')\n",
    "    Ur=input('Ur=?')\n",
    "    Ul=float(Ul);Uc=float(Uc);Ur=float(Ur)\n",
    "    Us=(Ur**2+(Ul-Uc)**2)**0.5\n",
    "    print('本组数据已处理完毕，结果如下：')\n",
    "    print('第',N,'组','Us=',Us)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "import math\n",
    "while True:\n",
    "    N=input('这是第几组数据？')\n",
    "    A=input('A=?') ; A=float(A)\n",
    "    B=input('B=?') ;B=float(B)\n",
    "    X=math.asin(B/A)\n",
    "    print('本组数据已处理完毕，结果如下：')\n",
    "    print('第',N,'组','角度为：',X)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
